package com.lw.tem.service.myservice;

import com.alibaba.csp.sentinel.annotation.SentinelResource;
import com.lw.tem.service.temservice.handler.TemBlockHandler;
import org.springframework.stereotype.Service;

@Service
public class MyOrderService implements OrderService{
    @Override
    @SentinelResource(value = "sen.createOrder",blockHandlerClass = TemBlockHandler.class, blockHandler = "handleQuickBlock")
    public String createOrder() {
        return "create order";
    }
}
